/**
 *弹窗,
 *部分功能待扩展
 */
export default {
  props: {
    // 是否显示对话框
    visible: Boolean
  },
  computed: {
    innerVisible: {
      get () {
        return this.visible
      },
      set (val) {
        this.$emit('update:visible', val)
      }
    }
  },
  methods: {
    // 重置
    onReset () {
      Object.keys(this.form).map(v => { this.form[v] = '' })
      this.$refs.myForm.resetValidation()
      this.$emit('close')
    },
    onClose () {
      this.$emit('close')
    }
  }
}
